package orz.mikeneck.server.locrec.persistent.utils;

import javax.jdo.JDOHelper;
import javax.jdo.PersistenceManager;
import javax.jdo.PersistenceManagerFactory;

public final class PersistenceManagerUtil {

	private static final PersistenceManagerFactory pmf =
		JDOHelper.getPersistenceManagerFactory("transactions-optional");

	private PersistenceManagerUtil(){
	}

	public static PersistenceManagerFactory getFactory(){
		return pmf;
	}

	public static PersistenceManager getManager(){
		return pmf.getPersistenceManager();
	}
}
